// export * from './auth';
// export * from './menu'
import axiosInstance from "@/api/axios";

export async function requestGet(url: string, params?: any) {
    const response = await axiosInstance.get(url, {params});
    return response.data;
}

export async function requestPost(url: string, data?: any){
    const response = await axiosInstance.post(url, data);
    return response.data;
}

export async function requestPut(url: string, data?: any) {
    const response = await axiosInstance.put(url, data);
    return response.data;
}

export async function requestDelete(url: string, params?: any) {
    const response = await axiosInstance.delete(url, {params});
    return response.data;
}

export async function requestBatchDelete(url: string, params?: any) {
    const response = await axiosInstance.delete(url, params);
    return response.data;
}
